package pzl.com.threadlocal.tasks;

import android.util.Log;

import pzl.com.threadlocal.utils.Util1;

/**
 * @author zl.peng
 * @version [1.0, 2016-11-15]
 */
public class Thread1 extends Thread {

    @Override
    public void run() {
        Log.e("pzl", Thread.currentThread().getName() + " start ");
        int share = Util1.getLocal().get();
        int i = 0;
        while (i < 5) {
            share++;
            i++;
        }
        Util1.getLocal().set(share);
        Log.e("pzl", Thread.currentThread().getName() + " : " + Util1.getLocal().get());
    }

}
